<?php defined('RUN_KATANA') or die('Restricted access'); ?>
<?php 
$countries = $shop->getCountryList();
if($shop->getBrands()):
foreach($shop->getBrands() as $brand)
{
	echo '<tr class="items">';
	echo '<td class="first center">'.$brand->getId().'<input type="hidden" name="brand_id[]" value="'.$brand->getId().'" />';
	echo 	'<div style="display:none;">'.$brand.'</div>';
	echo '</td>';
	echo '<td><input class="select_list" type="checkbox" name="selected[]" value="'.$brand->getId().'" /></td>';
	echo '<td><input class="small-m" name="brand_title[]" type="text" value="'.$brand->getTitle().'" maxlength="80" /></td>';
	echo '<td><input class="small-m" name="brand_title_import[]" type="text" value="'.$brand->getTitleImport().'" maxlength="50" /></td>';
	echo '<td>';
	echo 	'<select class="small-m" name="brand_country[]" >';
	echo 		'<option value="--" '.getIsSelectedHTML($brand->getCountry(), '--').'>'.ucfirst($txt->getWord('undefined')).'</option>';
				if($countries)
				{
					foreach($countries as $country)
					{ 
						if(getIsSelectedHTML($brand->getCountry(), $country['iso']) != '')
						{ echo '<option value="'.$country['iso'].'" '.getIsSelectedHTML($brand->getCountry(), $country['iso']).'>'.$country['printable_name'].'</option>'; }
					}
				}
	echo 	'</select>';
	echo '</td>';
	echo '<td>'.$commander->getActivationFieldsObject($brand).'<input type="hidden" name="brand_active[]" value="'.$brand->getActive().'" /></td>';
	echo '<td class="last">';
	echo 	'<img title="'.ucfirst($txt->getWord('delete').' '.$txt->getWord('brand')).'" class="icon command brand_delete" src="'.SYSICONS_URL.'delete_16.gif" onclick="deleteDialog('.$brand->getId().');" />';
	echo '</td>';
	echo '</tr>';
}
?>
<?php endif; ?>